#ifndef __UART_H__
#define __UART_H__


#define DEBUG	  (0)
#define USART0    (0) 
#define USART1    (1)
#define USART2    (2) 
#define USART3    (3)

#define ID_DEBUG   AT91C_ID_SYS

extern AT91S_USART* _UsartREG[4];
extern AT91S_DBGU*  UsartDebug;

void Usart_Init(unsigned int UsartID , unsigned int Brg , unsigned int Mode, unsigned int DbugFlag);   
void Usart_IntConfig(unsigned int UsartID , unsigned int Config , unsigned int OnOff, unsigned int DbugFlag);   
void Usart_Send(unsigned int UsartID , void* pData , unsigned int szBuffer, int DbugFlag);


#endif